package cn.ad.server.domain.ad;

import java.io.Serializable;
import java.util.Date;

public class AdSize implements Serializable {
	
	
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -1069274882040267513L;
	
	static final String VERSION = "0";
	static final String CACHE_NAME = "adsize";
	
	private int id;
	private String name;
	private int width;
	private int height;
	private int status;
	private Date createTime;
	private Date updateTime;
	
	public static String cacheKey(long id) {
		return new StringBuffer(CACHE_NAME).append(":").append(VERSION).append(":").append(id).toString();
	}
	
	public String toCacheKey() {
		return new StringBuffer(CACHE_NAME).append(":").append(VERSION).append(":").append(this.getId()).toString();
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

}
